},
performAuthentication() {
- this.destroySession();
+ this._destroySession();
this._session = new PolkitAgent.Session({ identity: this._identityToAuth,
cookie: this._cookie });
this._sessionCompletedId = this._session.connect('completed', this._onSessionCompleted.bind(this));
this._ensureOpen();
},
- destroySession() {
+ _destroySession() {
if (this._session) {
if (!this._completed)
this._session.cancel();
if (this._sessionUpdatedId)
Main.sessionMode.disconnect(this._sessionUpdatedId);
this._sessionUpdatedId = 0;
+
+ this._destroySession();
},
});
Signals.addSignalMethods(AuthenticationDialog.prototype);
_completeRequest(dismissed) {
this._currentDialog.close();
- this._currentDialog.destroySession();
this._currentDialog = null;
if (this._sessionUpdatedId)